package com.ruoyi.points.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.points.mapper.PointsSettingMapper;
import com.ruoyi.points.domain.PointsSetting;
import com.ruoyi.points.service.IPointsSettingService;

/**
 * points_settingService业务层处理
 *
 * @author ruoyi
 * @date 2024-08-02
 */
@Service
public class PointsSettingServiceImpl implements IPointsSettingService
{
    @Autowired
    private PointsSettingMapper pointsSettingMapper;

    /**
     * 查询points_setting
     *
     * @param id points_setting主键
     * @return points_setting
     */
    @Override
    public PointsSetting selectPointsSettingById(Long id)
    {
        return pointsSettingMapper.selectPointsSettingById(id);
    }

    /**
     * 查询points_setting列表
     *
     * @param pointsSetting points_setting
     * @return points_setting
     */
    @Override
    public List<PointsSetting> selectPointsSettingList(PointsSetting pointsSetting)
    {
        return pointsSettingMapper.selectPointsSettingList(pointsSetting);
    }

    /**
     * 新增points_setting
     *
     * @param pointsSetting points_setting
     * @return 结果
     */
    @Override
    public int insertPointsSetting(PointsSetting pointsSetting)
    {
        return pointsSettingMapper.insertPointsSetting(pointsSetting);
    }

    /**
     * 修改points_setting
     *
     * @param pointsSetting points_setting
     * @return 结果
     */
    @Override
    public int updatePointsSetting(PointsSetting pointsSetting)
    {
        return pointsSettingMapper.updatePointsSetting(pointsSetting);
    }

    /**
     * 批量删除points_setting
     *
     * @param ids 需要删除的points_setting主键
     * @return 结果
     */
    @Override
    public int deletePointsSettingByIds(Long[] ids)
    {
        return pointsSettingMapper.deletePointsSettingByIds(ids);
    }

    /**
     * 删除points_setting信息
     *
     * @param id points_setting主键
     * @return 结果
     */
    @Override
    public int deletePointsSettingById(Long id)
    {
        return pointsSettingMapper.deletePointsSettingById(id);
    }
}
